<template>
  <div>
    <h3>孙组件</h3>
    <h3>a:{{ a }}</h3>
    <h3>x:{{ x }}</h3>
    <h3>y:{{ y }}</h3>
    <button @click="giveMoney(123)">给爷爷123万元</button>
  </div>
</template>

<script setup lang='ts' name="Grandson">
import { ref, reactive } from 'vue'

defineProps(['a','x','y','giveMoney'])

</script>


<style lang='scss' scoped>

</style>